﻿@model IEnumerable<DCH.Areas.Admin.Models.Tournament>

@{
    ViewBag.Title = "Tournament";

}
<div class="clear"></div>
        <!-- Breadcrumb SecTion -->
       <div  class="breadcrumb-sec ">

    <!-- Container -->
    <div class="absolute-sec">
        <div class="container">
            <!-- PageInfo -->
            <div class="pageinfo page-title-align-left">
                <h1 style="color: #fff !important">Tournament</h1>
            </div>
            
        </div>
        <!-- Container -->
    </div>
</div>
        <div class="clear"></div>
        <!-- Breadcrumb SecTion -->
        <!-- Main Content Section -->
        <div id="main-content">
            <!-- Main Section Start -->
            <div class="main-section">
                <div class="container">
                    <div class="row">
                      
                      
                            <!-- Page Section -->
                            <section class="page-section  " style="margin-top: 0px;margin-bottom: 0px;border-top: 0px #e0e0e0 solid;border-bottom: 0px #e0e0e0 solid;">
                                <!-- Container Start here -->
                                <div class="container">
                                    <!-- Row Start -->
                                    <div class="row">
                                        <div class="section-fullwidth">
                                            <div class="element-size-100">
                                    <div class="col-md-12 ">
                                                    <div class="cs-section-title">
                                                <h2 class="">Played Matches</h2>
                                            </div>

                                                    <div class="event event-listing">
                                                         @{
                                                             if(Model.Count()==0)
                                                             {
                                                             <span>No Record Found</span>
                                                             }
                                                             else{
                                                      foreach (var item in Model)
                                                      {
                                                         
                                                        <article class="post-560 event-fixtures">

                                                            <div class="text" style="width:100%;">
                                                                <h2>

                                                                    <a href="#">@item.team1_name</a>

                                                                    <span>VS</span>


                                                                    <a href="#">@item.team2_name</a>
                                                                </h2>
                                                                <ul class="post-option">
                                                                    <li><i class="fa fa-flag"></i> <a href="#" rel="tag">DCH</a>, <a href="#" rel="tag">@item.Winner</a></li>
                                                                    <li>
                                                                        <i class=" fa fa-calendar"></i>
                                                                        @item.Date.ToString("MMMM dd, yyyy")
                                                                    </li>

                                                                     <li><i class="fa fa-location-arrow"></i>@item.Venue</li>
                                                                  
                                                                </ul>
                                                            </div>

                                                        </article>
                                                         }}
                                                         }
                                                    </div>
                                                </div>
                                    
                                                <div class="col-md-12 ">
                                                    <div class="cs-section-title">
                                                <h2 class="">Upcoming Matches</h2>
                                            </div>

                                                    <div class="event event-listing">
                                                         @{ 
                                                             if (ViewBag.UpcomingMatch == null)
                                                             {
                                                                <span>No Record Found</span>
                                                             }
                                                             else{
                                                            foreach (DCH.Areas.Admin.Models.Tournament item in ViewBag.UpcomingMatch)
                                                            {
                                                           
                                                        <article class="post-560 event-fixtures">

                                                            <div class="text" style="width:100%;">
                                                                <h2>

                                                                    <a href="#">@item.team1_name</a>

                                                                    <span>VS</span>


                                                                    <a href="#">@item.team2_name</a>
                                                                </h2>
                                                                <ul class="post-option">
                                                                    <li><i class="fa fa-flag"></i> <a href="#" rel="tag">DCH</a>, <a href="#" rel="tag">@item.Winner</a></li>
                                                                    <li>
                                                                        <i class=" fa fa-calendar"></i>
                                                                      @item.Date.ToString("MMMM dd, yyyy")
                                                                    </li>
                                                                       <li><i class="fa fa-location-arrow"></i>@item.Venue</li>

                                                                   
                                                                </ul>
                                                            </div>

                                                        </article>
                                                         }
                                                         }}
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </section>
                        
                    </div>
                </div>        <!-- Main Section End -->
            </div>
   

        </div>